#!/bin/bash
#

read -p "硬盘名称" name

df -hT | grep "${name}$"
if [ $? -ne 0 ]; then
	echo "磁盘不存在"
fi

rongliang=$(df -hT | grep $name |awk '{print $6}'|awk -F% '{print $1}')

if [ $rongliang -ge 10 ]; then
	echo "$name容量不足"
	
else
	echo "$name正常"
fi
